#!/bin/bash
export LK=/home/andreo/gpiodriver/linux-2.6.32.2
cp heval.c $LK/drivers/char/heval.c
cd $LK/drivers/char
make -C $LK M=$(PWD) modules
ftp -n 192.168.0.230 << EOF
user root 123qweasd
cd /home/plg
dele heval.ko
lcd /home/andreo/gpiodriver/linux-2.6.32.2/drivers/char
mput heval.ko
quit
EOF

